package com.gdssoft.pdaweb.dao.impl;

import java.util.List;

import com.gdssoft.core.dao.impl.BaseDaoImpl;
import com.gdssoft.pdaweb.dao.PdaMdAssetDetailDao;
import com.gdssoft.pdaweb.model.PdaMdAssetDetail;

@SuppressWarnings("unchecked")
public class PdaMdAssetDetailDaoImpl extends BaseDaoImpl<PdaMdAssetDetail> implements PdaMdAssetDetailDao{
	
	public PdaMdAssetDetailDaoImpl() {
		super(PdaMdAssetDetail.class);
	}

	public List<PdaMdAssetDetail> getByAssetNoAndSiteId(String assetNo,String siteId)
	{
		String hql="from PdaMdAssetDetail where assetNum=? and siteId=?";
		return this.findByHql(hql, new Object[]{assetNo, siteId});
		
	}
}
